<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> 
<% String path = request.getContextPath();%>  
<div><div class="divStyle"><div style="float:right"><div style="height:20px;line-height:20px;margin:10px;display:inline-block;"><limit:weight type="add"><input type="button" value="添加" onclick="javascript:addupdate_audit();"/></limit:weight></div></div><div style="clear:both"></div></div><div id="auditGrid"></div><div id="pager" class="pagination"></div></div>
<script type="text/javascript">
var beginRecord = 0;var maxRecord = 20;var currentPage=0;
load_auditgrid = function(state){ 
 if(state){ 
  beginRecord = 0; 
 maxRecord = 20; 
 }$.ajax({type: "POST", 
 url: '<%=path%>/audit/grid.action?page='+currentPage+'&rows='+maxRecord, 
 data:$("#queryForm").serialize(), 
 success: function(response){ 
 $("#auditGrid").html(response); 
  $.ligerDialog.closeWaitting(); 
 },error:function(){ 
 $.ligerDialog.error('服务器繁忙，请稍后再试');} 
 }); 
 };
pageselectCallback = function(page_id,perpage,jq){ 
 beginRecord = page_id*perpage; 
  maxRecord   = perpage; 
 currentPage = page_id; 
 load_auditgrid(); 
 };
addupdate_audit = function(id){ 
 $.ligerDialog.open({ url: '<%=path%>/audit/forwordEdit.action?id='+id, width:500,height:150, modal: true,title:'audit'}); 
 };
del_audit=function(id){ 
 $.ligerDialog.confirm({content:'确认删除这条数据吗?'}, function(r){ 
 if(r==true){ 
$.ajax({type: "POST", 
 url: '<%=path%>/audit/delete.action', 
  data:'id='+id, 
  success: function(msg){  
 $.ligerDialog.success('删除成功'); 
load_auditgrid(false); 
 },error:function(msg){  
  $.ligerDialog.error('服务器繁忙，请稍后再试');} 
 }); 
 }}); 
 };
 $(function(){ 
  load_auditgrid(true); 
  load_button_css(); 
 }); 
</script>